Skip to content

Add branded OAuth consent page - #148

Open
masnwilliams wants to merge 1 commit into
hypeship/project-scoped-oauthfrom
hypeship/branded-oauth-consent
Open

Add branded OAuth consent page#148
masnwilliams wants to merge 1 commit into
hypeship/project-scoped-oauthfrom
hypeship/branded-oauth-consent

Conversation

@masnwilliams

@masnwilliams masnwilliams commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

summary

  • add a Kernel-branded /oauth-consent route using Clerk’s prebuilt consent component
  • upgrade Clerk’s Next.js SDK and migrate the existing appearance variables to the v7 names
  • preserve OAuth parameters when switching accounts and protect the consent page from framing

rollout

  • stacked on Add project-scoped OAuth authorization #138 so the organization/project scope selection remains the first authorization step
  • after deployment, configure Clerk’s OAuth consent component path to /oauth-consent

testing

  • bun test
  • bun run build
  • verified /oauth-consent returns frame-ancestors 'none' and X-Frame-Options: DENY

Note

Medium Risk
Major Clerk SDK upgrade and new OAuth consent surface touch authentication flows; framing headers and redirect URL behavior need post-deploy Clerk dashboard config and regression on authorize/select-org.

Overview
Adds a Kernel-branded /oauth-consent route that renders Clerk’s OAuthConsent component behind Show / RedirectToSignIn, so signed-in users see the consent UI with the wordmark and loading fallback.

Upgrades @clerk/nextjs from v6 to v7 and renames ClerkProvider appearance variables in layout.tsx to the v7 tokens (colorForeground, colorMutedForeground, colorInput, etc.).

Hardens the consent URL in next.config.ts with Content-Security-Policy: frame-ancestors 'none' and X-Frame-Options: DENY for /oauth-consent.

On select-org, replaces UserButton with a custom SignOutButton that uses redirectUrl including the current query string so OAuth parameters survive account switching.

Reviewed by Cursor Bugbot for commit bef8fc4. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mcp Ready Ready Preview Aug 10, 2026 5:28pm

@socket-security

socket-security Bot commented Aug 9, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​clerk/​nextjs@​6.39.2 ⏵ 7.7.179 +1100 +1695 +1100100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant